{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <h2>待评分进度</h2>
    {% if progresses %}
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>学生</th>
                    <th>课题</th>
                    <th>阶段</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {% for progress in progresses %}
                    <tr>
                        <td>{{ progress.student.user.username }}</td>
                        <td>{{ progress.topic.name }}</td>
                        <td>{{ progress.get_stage_display }}</td>
                        <td>{{ progress.get_status_display }}</td>
                        <td>
                            <a href="{% url 'evaluate_progress' progress.id %}" class="btn btn-primary btn-sm">评分</a>
                        </td>
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>暂无需要评分的进度</p>
    {% endif %}
</div>
{% endblock %}
